import request from '@/utils/request'
const apiUrl = '/api/fileBorrow'
export function getFileBorrowList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

export function getFileBorrowById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function saveFileBorrow(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

export function deleteFileBorrow(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 